home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / utilitys / 388 / unlzh161 / unlzh.doc < prev    next >
Text File  |  1990-04-15  |  20KB  |  432 lines

  1.  
  2. UNLZH version 1.61 - A program for extracting .LZH archive files.
  3.  
  4. UNLZH combines an easy to use, GEM based interface with high speed
  5. extraction routines, to give you a much simpler and much faster way to
  6. extract LZH archives.  It is a self contained program - LHARC does not
  7. need to be present to extract files.  It is written in 100% Assembly
  8. language, and extracts approximately four times faster than LHARC.
  9.  
  10. UNLZH can search past damaged sections of an archive, and should be able
  11. to extract the rest of the files.
  12.  
  13. UNLZH can also extract multiple archives at once, and place the contents
  14. in individual folders.
  15.  
  16. How to Use the Program:
  17. -----------------------
  18.  
  19. UNLZH will start with a menu screen that contains configuration options,
  20. and all the main functions.  In the upper part of the menu are two program
  21. options that should be set up before selecting any of the function buttons
  22. in the lower part.
  23.  
  24. The first option, Create Folders, can be used if you want the program to
  25. create a folder with the same name as the archive file, and place all the
  26. extracted contents within it.  If you want to extract directly to the
  27. destination path, select 'No' for the Create Folders option.
  28.  
  29. When the second option, Overwrite Files, is set to 'No', the program will
  30. prompt you if one of the files to be extracted already exists.  (Similar
  31. to the warning the GEM desktop gives you when you try to copy a file that
  32. already exists).  Selecting 'Yes' for this option will bypass the warning
  33. prompt, and overwrite any files that may have already existed.
  34.  
  35. Program Functions:
  36. ------------------
  37.  
  38. - Extract -
  39.  
  40. The first, and default function is to Extract all.  This will prompt you
  41. for an input archive file, then a destination path, and then extract all
  42. the files from the archive.  If the Create Folders option is turned on,
  43. a folder will be created at the destination path, and the files will be
  44. extracted into it.  If a folder by that name already exists, the program
  45. will extract into the already existing folder.
  46.  
  47. To extract multiple archives at once, just enter an '*' for the input
  48. filename.  UNLZH will then extract all of the archives in that directory.
  49. You should have the Create Folders option turned on, so that the archives
  50. will extract into separate folders.
  51.  
  52. - W/Query -
  53.  
  54. Extract With Query operates the same as the full Extract, except that
  55. after selecting the input archive file, another menu will come up which
  56. displays all of the files contained in the archive.  You may click on
  57. individual files to select them, or hold the left mouse button down and
  58. drag the pointer over a group of files.  Files selected for extraction are
  59. indicated by having an '*' placed in front of the file name.  Files may
  60. also be deselected in the same way.  When you have selected all the
  61. desired files, click on the Extract button.  The ALL button is a short
  62. cut, in case you decide you want all the files after all, and don't want
  63. to select them all manually.  You can also click on Quit, which will
  64. return you to the initial menu.
  65.  
  66.  
  67. If the archive file has been damaged, some of the selections may display as
  68. '- Bad Header -'.  These sections cannot be extracted, however UNLZH will
  69. search the rest of the archive to find as many good files as possible.
  70.  
  71. - To Screen -
  72.  
  73. Extract to Screen also displays a menu of the archive contents.  Some files
  74. may already be selected for extraction.  Any file beginning with READ, or
  75. having the extension .TXT, .DOC, or .ASC, will be marked.  Also, if there
  76. is only one file in the archive, it will be marked to extract.  If you wish
  77. to extract the pre-selected files, you can immediately select the Screen or
  78. Printer option at the bottom of the menu.  Otherwise, you may manually
  79. select which file(s) you want to look at in the same manner as described for
  80. Extract with Query.
  81.  
  82. A maximum of 3 files will be marked, except in cases where the archive
  83. contains all text files, in which case none of the files will be pre-marked.
  84.  
  85. Screen listings will pause every 24 lines.  (Or more if you are using a
  86. larger screen).  There are many options to control the screen listing:
  87.  
  88. Left Mouse Button - Continue listing one line at a time
  89. Right Mouse Button - Reverse scroll the listing, one line at a time
  90. Both Buttons - Abort listing
  91.  
  92. 'Return' - Display one line at a time
  93. 'Down Arrow' or 'Space Bar' - Display one screen at a time
  94. 'Up Arrow' - Back up to the previous screen
  95. 'Shift' & 'Down Arrow' - Jump 4 screens forward
  96. 'Shift' & 'Up Arrow' - Jump 4 screens backward
  97. 'Home' - Return to the top of the file
  98. 'S' - Enter Search and Move menu:
  99.  
  100.       To perform a search, enter a phrase to search for, and select whether
  101.       the program should 'Match', or 'Ignore' differences in upper/lower
  102.       case.  Then click on either 'Search' or 'Next' to begin searching.
  103.       (You may also press the 'Return' key for the Next function).
  104.       'Search' will start at the top of the file, and 'Next' will start at
  105.       the current location.  The program will display the next line that
  106.       contains the search phrase.  If no match was found, the display will
  107.       be in the same place, and the Bell will sound.
  108.  
  109.       The other buttons allow you to jump directly to one of five positions.
  110.       'Top' jumps to the top of the file.  (Same as Home)
  111.       '1/4' jumps to a position one quarter of the way through the file
  112.       '1/2' jumps to half way through the file
  113.       '3/4' jumps three quarters of the way through
  114.       'End' jumps to the end of the file
  115.  
  116. 'N' - Display the 'Next' match, using the current search phrase
  117. 'P' - Send a block of text to the Printer:
  118.  
  119.       The first 'P' will mark the top line of the current screen as the top
  120.       of the block.  Then move down to the end of the area you wish to print,
  121.       and press 'P' again.  This will send all of the text from your first
  122.       mark, to the bottom line of the ending screen, to the printer.
  123.  
  124. Press 'ESC' to abort either screen or printer listings.
  125.  
  126. If multiple files were selected for extraction, Abort will progress to the
  127. next file.  This, combined with the search capabitities, allows you to
  128. search multiple files very easily.
  129.  
  130. Notes: In low memory situations, where there is not enough room to store
  131. the entire extracted file, the process is done in segments, and there are a
  132. few differences in the way the program responds.
  133.  
  134. Backing up the display is limited to how much of the extracted file is still
  135. in memory.  You may find a point where you can't back up any further.  This
  136. is because the data before this point has been overwritten.  This
  137. restriction does not occur with the Home, Search, and Jump functions, and
  138. they may be used to get back to earlier sections of the file.
  139.  
  140. After a search where a match is not found, the program will try to return
  141. to the previous location.  If that spot is no longer in memory, the program
  142. will jump to the top of the file.
  143.  
  144. When using the Print Block feature, you may be scrolling the file across one
  145. of the segment boundaries.  If this happens the program will immediately
  146. send all the data so far, out to the printer.  The scrolling process will be
  147. paused until the data has been sent.  Afterwards, you can continue scrolling
  148. to the desired end position, and press 'P' to print the rest of the data.
  149.  
  150. Again, unless you operate the program in low memory situations, and/or
  151. extract large text files, you will not see any of these behaviors.
  152.  
  153. - Test -
  154.  
  155. The Test function is used to test the files in an archive without actually
  156. extracting any of them.  It will display 'Okay' after each valid file, and
  157. report any problems found in the archive.  It operates like Extract with
  158. Query, but does not ask you for a destination path, (as it does not write
  159. out any extracted files).
  160.  
  161. - View -
  162.  
  163. View allows you to look at all the files in an archive.  It will ask for
  164. an input archive file, and then display an options menu.  You should first
  165. select either Verbose or Short format.  Short will list only the filenames,
  166. original sizes, and any comments the archive contains.  The Verbose form
  167. lists the following information about all of the files.
  168.  
  169. Filename:  The name of the original file.
  170. Actual:    The size of the original file.
  171. Packed:    The size of the compressed file.
  172. Ratio:     The compressed file size as compared to the original.
  173. Time/Date: The time and date when the file was last modified.
  174. Attr:      The following letters will be displayed if the corresponding
  175.            file attribute is set:
  176.            r - File is set to Read Only
  177.            h - File is hidden from directories
  178.            s - System file
  179.            a - Archive bit.
  180. Methd:     The method used in storing the file.  Either '-lh1-' for a
  181.            compressed file, or '-lh0-' for uncompressed
  182. CRC        The CRC calculation of file.  This value is recalculated
  183.            whenever the file is extracted, to test if the file is Okay.
  184.  
  185. You can also select whether the output will be displayed on the screen, or
  186. sent to the printer.  Quit will return you to the main menu.
  187.  
  188. The screen display will pause every 24 lines.  You may press 'Space Bar' to
  189. continue, 'Return' or Left Mouse Button to list one line at a time, 'Home'
  190. to return to the top of the list, and 'ESC' or Both Mouse Buttons to abort.
  191.  
  192. Backing up is not supported.
  193.  
  194. - Quit -
  195.  
  196. Quit will exit to the desktop.
  197.  
  198.  
  199. Saving the Configuration:
  200. -------------------------
  201.  
  202. The 'Save Configuration' button will save the current settings for all of
  203. the program options, (including Short/Verbose listing and Match/Ignore
  204. cases), plus the input and output path names that were last used.  The
  205. information will be written directly into the program file itself.  If
  206. UNLZH161.PRG cannot be found on the default directory, the program will ask
  207. you to enter its location using the file selector.
  208.  
  209. Do not attempt to save a configuration into an UNLZH program file that has
  210. been modified in any way.  If you have used a compression program such as
  211. 'PACK' on the UNLZH161.PRG file, you MUST uncompress the file before saving
  212. any configurations.
  213.  
  214. The Overwrite Warning Message:
  215. ------------------------------
  216.  
  217. Anytime UNLZH finds that an extracted file already exists at the
  218. destination, it will display a warning message with several choices.
  219. (Unless you have the program option Overwrite Files set to 'Yes').
  220.  
  221. You may press the 'Return' key, or click on 'Extract' to overwrite the
  222. file.  You may also change the name of the extracted file to something
  223. else, and press return.
  224.  
  225. The 'Skip' button will skip the current file without extracting it, and
  226. continue with the rest of the archive.  The file will also be skipped if
  227. you press the 'Esc' key to erase the name, and then press 'Return'.
  228.  
  229. The 'All' button will extract all of the files in the current archive
  230. without any more warning prompts.  When the archive has been extracted
  231. completely, the warning prompt will be active again in case you are doing
  232. multiple archives.
  233.  
  234. The 'Quit' button will skip the rest of the files in the current archive.
  235. If you are extracting multiple archives, it will go on to the next one.
  236. Otherwise, 'Quit' will return to the main menu.
  237.  
  238. Files set to Read-Only  (Protected Files)
  239. ----------------------
  240.  
  241. You will also get a warning message if the existing file is set to Read
  242. Only.  The prompt will indicate that the file is protected, and give you
  243. the same choices as the File Overwrite warning.  Note: The Read Only
  244. warning will always be active, regardless of the setting for the Overwrite
  245. Files option.
  246.  
  247. UNLZH as a GEM application:
  248. ---------------------------
  249.  
  250. In addition to running normally from the desktop, UNLZH can be installed
  251. as a GEM application with a document type LZH.  This allows you to double-
  252. click on any .LZH archive, and automatically load in the UNLZH program.
  253. You can still select options from the main menu.  When you select a
  254. program function, you will not be asked for an input file.  Instead, UNLZH
  255. will use the .LZH file you double-clicked on as its input.  Also, when the
  256. operation is completed, the program will exit to the desktop, instead of
  257. returning to the main menu.
  258.  
  259. To Install:  (From the GEM Desktop)
  260. -----------
  261.  
  262. If you have previously installed an application for .LZH files, you will
  263. need to remove it.  Click once on the previous program to highlight it.
  264. Select 'Install Application' from the Options drop down menu.  Then click
  265. on the Remove button.
  266.  
  267. To install UNLZH, click once on UNLZH161.PRG, select 'Install Application'
  268. from the drop down menu, enter 'LZH' as the document type, and then click
  269. on the Install button.
  270.  
  271. You should then save the desktop, also using the options drop down menu.
  272.  
  273. Update History:
  274. ---------------
  275.  
  276. - Version 1.2 -
  277.  
  278. An extender of .LZH is appended to input files that have either no extender,
  279. or a '.*' extender.  All other names are passed through.
  280.  
  281. New approach to 'Bad Header' checking.  The program runs the search to find
  282. additional headers before displaying the message.  If no valid headers are
  283. found, the message will not come up.  This should eliminate the end of file
  284. errors that some files were still producing.
  285.  
  286. There is now a warning message for files that are set to read-only.  And
  287. also the ability to overwrite these files.
  288.  
  289. The View command now supports output to printer, and also a short form
  290. which prints only the filename, original size, and any comments.
  291.  
  292. The main menu displays the size of the program's input buffer.
  293.  
  294. The name of the current archive, displayed at the top of the screen, is no
  295. longer erased after menus and file selections.
  296.  
  297. Added 'Save Configuration' command.  Saves all the program options, plus
  298. the input and output path names.
  299.  
  300. There is limited support for calling UNLZH from a command line.  It will
  301. take the filename from command input, and do a full extract on the output
  302. path that was saved with the configuration.  (If the configuration has not
  303. been saved, files will be written to the default directory).  Wildcards are
  304. allowed for batch processing.  The 'Create Folders' and 'Overwrite Files'
  305. options have the same effects.  The program will exit after completion, or
  306. after any errors.
  307.  
  308. To bypass the main menu and other GEM prompts, enter an 'X ' in front of
  309. the input file.  (i.e. 'UNLZH X FILENAME' as in ARC.TTP).  Full pathname
  310. inputs are also allowed.
  311.  
  312. - Version 1.3 -
  313.  
  314. The View command now prints the number of files contained in the archive,
  315. the total sizes, and the time/date when the archive was last modified.
  316.  
  317. Fixed: If a configuration was saved before doing any extractions, the
  318. program would crash the next time it was run.
  319.  
  320. The default name in the input file selector now comes up '*'.  It allows
  321. you to just press return if you want to extract all .LZH archives.
  322.  
  323. The destination file selector now shows all files, instead of just .LZH.
  324.  
  325. The buffer size displayed in the main menu has been adjusted to indicate
  326. only the amount of memory available for loading the input archive.  (The
  327. previous buffer size included space used for extracting the files as well).
  328. This display is much more usefull, because it now indicates the maximum
  329. archive size that can be loaded into memory in one pass.  In other words,
  330. if the size of the archive file is smaller than the 'Buffer:' display, it
  331. will be completely loaded into memory before the program asks for the
  332. 'Destination'.
  333.  
  334. - Version 1.4 -
  335.  
  336. OOPS...  The 'Save Configuration' bug crept back in just before uploading
  337. 1.3.  Sorry about that one, but it should be fixed here.
  338.  
  339. Extract to Screen should be properly formatted for larger display sizes.
  340.  
  341. There are many new additions to the Extract to Screen function.  See the
  342. sections on 'To Screen' and 'View' for details.  The flexibility of the
  343. Extract to Screen, I feel, allows you to keep most of your documentation
  344. files in LZH archive(s), and still have easy access to their information.
  345.  
  346. - Version 1.5 -
  347.  
  348. Extract to screen continues through multiple files correctly.  View
  349. function now requires either 'ESC', or both mouse buttons to continue.
  350.  
  351. Now supports pathname extraction from archives created with LHarc 1.01.
  352. For display and file selection purposes, empty pathname entries show only
  353. the last 13 characters, and all other entries show only the filename.  In
  354. all cases, the full pathname will be used when saving to disk.  Partial
  355. extractions using the w/Query mode are accepted, and will create whatever
  356. folders are neccessary to place the file in its designated place.
  357.  
  358. Extracts self-extracting type archive files.
  359.  
  360. Fixed: Uncompressed files (-lh0-) could sometimes be skewed by 1 byte.
  361.  
  362. LHarc .51 does not store a CRC value for uncompressed files, therefore
  363. UNLZH thought it was getting CRC errors.  I now do a check for this
  364. condition and instead report the message 'No CRC'.  This means it is
  365. impossible to verify if these files are okay.  It's unfortunate that the
  366. author of LHarc didn't realize that uncompressed files are just as
  367. susceptible to transmission/media errors as compressed files are.
  368.  
  369. Desk accessory version available, and new shareware terms.  See below.
  370.  
  371. Version 1.6
  372. -----------
  373.  
  374. Fixed some problems that could occur in low memory situations, plus made
  375. the memory usage a bit more efficient.
  376.  
  377. Blocks of text can be sent to the printer from within the extract To Screen
  378. function.  The menu of archive contents now comes up with certain file types
  379. already selected.  See the extract To Screen section for more information.
  380.  
  381. Double-clicking is now supported from the menu of archive contents.  It
  382. selects the file and goes directly to the extraction process.  If you are
  383. selecting multiple files, you may use a double-click on the last one.
  384.  
  385. Version 1.61
  386. ------------
  387.  
  388. UNLZH will now extract empty folders.
  389.  
  390. Adjustments have been made to the 'Bad Header' search routine to prevent it
  391. from using additional headers in Stored archive files.  It also eliminates
  392. Bad Header messages that could occur at the end of archives that contained
  393. other archive files.
  394.  
  395. In closing:
  396. -----------
  397.  
  398. You may make copies and distribute this program, as long as the program
  399. and documentation file remain unchanged, and are distributed together.
  400.  
  401. This program is shareware.  If you enjoy using it, please send $5 to me at
  402. the address below.  You may use the enclosed self-addressed envelope, by
  403. printing out the ENVELOPE.TXT file, and following its instructions.  Your
  404. printer should be set to start printing at the very top edge of the paper
  405. for best results.  Ideally, the bottom flap should be long enough to reach
  406. the middle fold line.  If it is too short, you may use a word processor to
  407. delete a few lines from the top of the document, and reprint it.
  408.  
  409. For those who send a contribution of $10, I will send back a desk accessory
  410. version of UNLZH.  If you have a GEnie account, I can also send updated
  411. versions of the program, before they are available for general download.
  412. All programs will be sent to you via Xmodem EMail.  For all others, I will
  413. send the desk accessory version by US mail.
  414.  
  415. $10 contributions may also be made using GEnie's Gift of Time feature.  To
  416. access it, type 'GIFTOFTIME' at any of the menu prompts.  It allows you to
  417. give a $10 GEnie credit, and gets added to your monthy billing.  GEnie does
  418. don't give On-Line confirmation of Gift of Time's, but sends a notice
  419. through the mail.  To guard against lost mail, and also to let me know
  420. what program you are registering, please send an EMail notice as well.
  421.  
  422. Please include the version number of the program, and GEnie account (if any)
  423. on any correspondence.  I hope you enjoy the program, and let me know of any
  424. comments.  PLEASE send suggestions for improvements and/or bug reports.
  425.  
  426. John Harris
  427. 45346 Graceway Dr.
  428. Ahwahnee, CA 93601
  429. (209) 683-3412
  430. GEnie: J.HARRIS32
  431.  
  432.